<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo1"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<body>

<div class="layui-card">

    <div class="layui-card-line"></div>

    <div class="layui-card-body">

        <div class="layui-card-table layui-tab">
            <div class="layui-tab-content">
                <div class="layui-form-item layui-inline">
                    <button class='layui-btn layui-btn-sm' shiro:hasPermission="pcs:projectStage:add" data-height="300px"  th:attr="data-modal=${'/pcs/project/stage/form?projectId=' + projectId}">新增</button>
                </div>
                <table id="ProjectStageTable" th:attr="data-url=${'/pcs/project/stage/index?projectId='+projectId}" data-target-search="form.form-search"></table>
                <script type="text/javascript" th:inline="none">
                    $(function () {
                        $('#ProjectStageTable').layTable({
                            even: true,
                            cols: [[
                                {title: '序号', type: 'numbers', width: 80},
                                {field: 'title', title: '类型名称', minWidth: 180, align: 'center'},
                                {field: 'timeStart', title: '开始时间', align: 'center'},
                                {field: 'timeEnd', title: '结束时间', align: 'center'},
                                {field: 'price', title: '价格', align: 'center'},
                                {toolbar: '#toolbar1', title: '操作', align: 'center', minWidth: 200, fixed: 'right'}
                            ]]
                        });
                    });



                </script>


                <script type="text/html" id="toolbar1">
                    <a class="layui-btn layui-btn-sm" data-event-dbclick data-title="编辑" shiro:hasPermission="pcs:projectStage:add" data-height="300px"  data-modal='/pcs/project/stage/form?id={{d.id}}&projectId={{d.projectId}}'>编 辑</a>
                    <a class="layui-btn layui-btn-sm layui-btn-danger" data-event-dbclick shiro:hasPermission="pcs:projectStage:state"  data-action='/pcs/project/stage/state?id={{d.id}}&status=3'>删除</a>
                </script>

            </div>
        </div>
    </div>

</div>
</body>
</html>